package edu.scau.misp.backend_module.mapper;

import edu.scau.misp.backend_module.domain.DishAddition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishAdditionMapper {
    /**
     * 根据SN查询餐品组合
     * @param dishAdditionSn
     * @return
     */
    public DishAddition getDishAdditionBySn(Long dishAdditionSn);

    /**
     * 根据ID查询餐品组合
     * @param dishAdditionId
     * @return
     */

    public DishAddition getDishAdditionById(Long dishAdditionId);

    /**
     * 查询所有餐品组合
     * @return
     */
    public List<DishAddition> listAllDishAddition();

    /**
     * 根据DA对象查询符合要求的数据
     * @param dishAddition
     * @return
     */


    public List<DishAddition> selectDishAdditionList(DishAddition dishAddition);

    /**
     * 添加组合餐品
     * @param dishAddition
     * @return
     */
    public int insertDishAddition(DishAddition dishAddition);

    /**
     * 修改组合餐品
     * @param dishAddition
     * @return
     */
    public int updateDishAddition(DishAddition dishAddition);


    /**
     * 删除组合餐品
     * @param dishAdditionSn
     * @return
     */
    public int deleteDishAdditionBySn(Long dishAdditionSn);



}
